Optimal. Leaf size=208 \[ -\frac{9 b^2 \left (a+b \tanh ^{-1}(c x)\right )}{16 c (c x+1)}-\frac{3 b^2 \left (a+b \tanh ^{-1}(c x)\right )}{16 c (c x+1)^2}+\frac{9 b \left (a+b \tanh ^{-1}(c x)\right )^2}{32 c}-\frac{3 b \left (a+b \tanh ^{-1}(c x)\right )^2}{8 c (c x+1)}-\frac{3 b \left (a+b \tanh ^{-1}(c x)\right )^2}{8 c (c x+1)^2}+\frac{\left (a+b \tanh ^{-1}(c x)\right )^3}{8 c}-\frac{\left (a+b \tanh ^{-1}(c x)\right )^3}{2 c (c x+1)^2}-\frac{21 b^3}{64 c (c x+1)}-\frac{3 b^3}{64 c (c x+1)^2}+\frac{21 b^3 \tanh ^{-1}(c x)}{64 c} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.371169, antiderivative size = 208, normalized size of antiderivative = 1., number of steps used = 24, number of rules used = 6, integrand size = 18, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.333, Rules used = {5928, 5926, 627, 44, 207, 5948} \[ -\frac{9 b^2 \left (a+b \tanh ^{-1}(c x)\right )}{16 c (c x+1)}-\frac{3 b^2 \left (a+b \tanh ^{-1}(c x)\right )}{16 c (c x+1)^2}+\frac{9 b \left (a+b \tanh ^{-1}(c x)\right )^2}{32 c}-\frac{3 b \left (a+b \tanh ^{-1}(c x)\right )^2}{8 c (c x+1)}-\frac{3 b \left (a+b \tanh ^{-1}(c x)\right )^2}{8 c (c x+1)^2}+\frac{\left (a+b \tanh ^{-1}(c x)\right )^3}{8 c}-\frac{\left (a+b \tanh ^{-1}(c x)\right )^3}{2 c (c x+1)^2}-\frac{21 b^3}{64 c (c x+1)}-\frac{3 b^3}{64 c (c x+1)^2}+\frac{21 b^3 \tanh ^{-1}(c x)}{64 c} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5928
Rule 5926
Rule 627
Rule 44
Rule 207
Rule 5948
Rubi steps
\begin{align*} \int \frac{\left (a+b \tanh ^{-1}(c x)\right )^3}{(1+c x)^3} \, dx &=-\frac{\left (a+b \tanh ^{-1}(c x)\right )^3}{2 c (1+c x)^2}+\frac{1}{2} (3 b) \int \left (\frac{\left (a+b \tanh ^{-1}(c x)\right )^2}{2 (1+c x)^3}+\frac{\left (a+b \tanh ^{-1}(c x)\right )^2}{4 (1+c x)^2}-\frac{\left (a+b \tanh ^{-1}(c x)\right )^2}{4 \left (-1+c^2 x^2\right )}\right ) \, dx\\ &=-\frac{\left (a+b \tanh ^{-1}(c x)\right )^3}{2 c (1+c x)^2}+\frac{1}{8} (3 b) \int \frac{\left (a+b \tanh ^{-1}(c x)\right )^2}{(1+c x)^2} \, dx-\frac{1}{8} (3 b) \int \frac{\left (a+b \tanh ^{-1}(c x)\right )^2}{-1+c^2 x^2} \, dx+\frac{1}{4} (3 b) \int \frac{\left (a+b \tanh ^{-1}(c x)\right )^2}{(1+c x)^3} \, dx\\ &=-\frac{3 b \left (a+b \tanh ^{-1}(c x)\right )^2}{8 c (1+c x)^2}-\frac{3 b \left (a+b \tanh ^{-1}(c x)\right )^2}{8 c (1+c x)}+\frac{\left (a+b \tanh ^{-1}(c x)\right )^3}{8 c}-\frac{\left (a+b \tanh ^{-1}(c x)\right )^3}{2 c (1+c x)^2}+\frac{1}{4} \left (3 b^2\right ) \int \left (\frac{a+b \tanh ^{-1}(c x)}{2 (1+c x)^2}-\frac{a+b \tanh ^{-1}(c x)}{2 \left (-1+c^2 x^2\right )}\right ) \, dx+\frac{1}{4} \left (3 b^2\right ) \int \left (\frac{a+b \tanh ^{-1}(c x)}{2 (1+c x)^3}+\frac{a+b \tanh ^{-1}(c x)}{4 (1+c x)^2}-\frac{a+b \tanh ^{-1}(c x)}{4 \left (-1+c^2 x^2\right )}\right ) \, dx\\ &=-\frac{3 b \left (a+b \tanh ^{-1}(c x)\right )^2}{8 c (1+c x)^2}-\frac{3 b \left (a+b \tanh ^{-1}(c x)\right )^2}{8 c (1+c x)}+\frac{\left (a+b \tanh ^{-1}(c x)\right )^3}{8 c}-\frac{\left (a+b \tanh ^{-1}(c x)\right )^3}{2 c (1+c x)^2}+\frac{1}{16} \left (3 b^2\right ) \int \frac{a+b \tanh ^{-1}(c x)}{(1+c x)^2} \, dx-\frac{1}{16} \left (3 b^2\right ) \int \frac{a+b \tanh ^{-1}(c x)}{-1+c^2 x^2} \, dx+\frac{1}{8} \left (3 b^2\right ) \int \frac{a+b \tanh ^{-1}(c x)}{(1+c x)^3} \, dx+\frac{1}{8} \left (3 b^2\right ) \int \frac{a+b \tanh ^{-1}(c x)}{(1+c x)^2} \, dx-\frac{1}{8} \left (3 b^2\right ) \int \frac{a+b \tanh ^{-1}(c x)}{-1+c^2 x^2} \, dx\\ &=-\frac{3 b^2 \left (a+b \tanh ^{-1}(c x)\right )}{16 c (1+c x)^2}-\frac{9 b^2 \left (a+b \tanh ^{-1}(c x)\right )}{16 c (1+c x)}+\frac{9 b \left (a+b \tanh ^{-1}(c x)\right )^2}{32 c}-\frac{3 b \left (a+b \tanh ^{-1}(c x)\right )^2}{8 c (1+c x)^2}-\frac{3 b \left (a+b \tanh ^{-1}(c x)\right )^2}{8 c (1+c x)}+\frac{\left (a+b \tanh ^{-1}(c x)\right )^3}{8 c}-\frac{\left (a+b \tanh ^{-1}(c x)\right )^3}{2 c (1+c x)^2}+\frac{1}{16} \left (3 b^3\right ) \int \frac{1}{(1+c x)^2 \left (1-c^2 x^2\right )} \, dx+\frac{1}{16} \left (3 b^3\right ) \int \frac{1}{(1+c x) \left (1-c^2 x^2\right )} \, dx+\frac{1}{8} \left (3 b^3\right ) \int \frac{1}{(1+c x) \left (1-c^2 x^2\right )} \, dx\\ &=-\frac{3 b^2 \left (a+b \tanh ^{-1}(c x)\right )}{16 c (1+c x)^2}-\frac{9 b^2 \left (a+b \tanh ^{-1}(c x)\right )}{16 c (1+c x)}+\frac{9 b \left (a+b \tanh ^{-1}(c x)\right )^2}{32 c}-\frac{3 b \left (a+b \tanh ^{-1}(c x)\right )^2}{8 c (1+c x)^2}-\frac{3 b \left (a+b \tanh ^{-1}(c x)\right )^2}{8 c (1+c x)}+\frac{\left (a+b \tanh ^{-1}(c x)\right )^3}{8 c}-\frac{\left (a+b \tanh ^{-1}(c x)\right )^3}{2 c (1+c x)^2}+\frac{1}{16} \left (3 b^3\right ) \int \frac{1}{(1-c x) (1+c x)^3} \, dx+\frac{1}{16} \left (3 b^3\right ) \int \frac{1}{(1-c x) (1+c x)^2} \, dx+\frac{1}{8} \left (3 b^3\right ) \int \frac{1}{(1-c x) (1+c x)^2} \, dx\\ &=-\frac{3 b^2 \left (a+b \tanh ^{-1}(c x)\right )}{16 c (1+c x)^2}-\frac{9 b^2 \left (a+b \tanh ^{-1}(c x)\right )}{16 c (1+c x)}+\frac{9 b \left (a+b \tanh ^{-1}(c x)\right )^2}{32 c}-\frac{3 b \left (a+b \tanh ^{-1}(c x)\right )^2}{8 c (1+c x)^2}-\frac{3 b \left (a+b \tanh ^{-1}(c x)\right )^2}{8 c (1+c x)}+\frac{\left (a+b \tanh ^{-1}(c x)\right )^3}{8 c}-\frac{\left (a+b \tanh ^{-1}(c x)\right )^3}{2 c (1+c x)^2}+\frac{1}{16} \left (3 b^3\right ) \int \left (\frac{1}{2 (1+c x)^2}-\frac{1}{2 \left (-1+c^2 x^2\right )}\right ) \, dx+\frac{1}{16} \left (3 b^3\right ) \int \left (\frac{1}{2 (1+c x)^3}+\frac{1}{4 (1+c x)^2}-\frac{1}{4 \left (-1+c^2 x^2\right )}\right ) \, dx+\frac{1}{8} \left (3 b^3\right ) \int \left (\frac{1}{2 (1+c x)^2}-\frac{1}{2 \left (-1+c^2 x^2\right )}\right ) \, dx\\ &=-\frac{3 b^3}{64 c (1+c x)^2}-\frac{21 b^3}{64 c (1+c x)}-\frac{3 b^2 \left (a+b \tanh ^{-1}(c x)\right )}{16 c (1+c x)^2}-\frac{9 b^2 \left (a+b \tanh ^{-1}(c x)\right )}{16 c (1+c x)}+\frac{9 b \left (a+b \tanh ^{-1}(c x)\right )^2}{32 c}-\frac{3 b \left (a+b \tanh ^{-1}(c x)\right )^2}{8 c (1+c x)^2}-\frac{3 b \left (a+b \tanh ^{-1}(c x)\right )^2}{8 c (1+c x)}+\frac{\left (a+b \tanh ^{-1}(c x)\right )^3}{8 c}-\frac{\left (a+b \tanh ^{-1}(c x)\right )^3}{2 c (1+c x)^2}-\frac{1}{64} \left (3 b^3\right ) \int \frac{1}{-1+c^2 x^2} \, dx-\frac{1}{32} \left (3 b^3\right ) \int \frac{1}{-1+c^2 x^2} \, dx-\frac{1}{16} \left (3 b^3\right ) \int \frac{1}{-1+c^2 x^2} \, dx\\ &=-\frac{3 b^3}{64 c (1+c x)^2}-\frac{21 b^3}{64 c (1+c x)}+\frac{21 b^3 \tanh ^{-1}(c x)}{64 c}-\frac{3 b^2 \left (a+b \tanh ^{-1}(c x)\right )}{16 c (1+c x)^2}-\frac{9 b^2 \left (a+b \tanh ^{-1}(c x)\right )}{16 c (1+c x)}+\frac{9 b \left (a+b \tanh ^{-1}(c x)\right )^2}{32 c}-\frac{3 b \left (a+b \tanh ^{-1}(c x)\right )^2}{8 c (1+c x)^2}-\frac{3 b \left (a+b \tanh ^{-1}(c x)\right )^2}{8 c (1+c x)}+\frac{\left (a+b \tanh ^{-1}(c x)\right )^3}{8 c}-\frac{\left (a+b \tanh ^{-1}(c x)\right )^3}{2 c (1+c x)^2}\\ \end{align*}
Mathematica [A] time = 0.212471, size = 215, normalized size = 1.03 \[ \frac{-6 b \left (8 a^2+12 a b+7 b^2\right ) (c x+1)-3 b \left (8 a^2+12 a b+7 b^2\right ) (c x+1)^2 \log (1-c x)+3 b \left (8 a^2+12 a b+7 b^2\right ) (c x+1)^2 \log (c x+1)-24 b \tanh ^{-1}(c x) \left (8 a^2+4 a b (c x+2)+b^2 (3 c x+4)\right )-2 \left (24 a^2 b+32 a^3+12 a b^2+3 b^3\right )+12 b^2 (c x-1) \tanh ^{-1}(c x)^2 (4 a (c x+3)+b (3 c x+5))+16 b^3 \left (c^2 x^2+2 c x-3\right ) \tanh ^{-1}(c x)^3}{128 c (c x+1)^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.432, size = 2752, normalized size = 13.2 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.09875, size = 1075, normalized size = 5.17 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.90281, size = 554, normalized size = 2.66 \begin{align*} \frac{2 \,{\left (b^{3} c^{2} x^{2} + 2 \, b^{3} c x - 3 \, b^{3}\right )} \log \left (-\frac{c x + 1}{c x - 1}\right )^{3} - 64 \, a^{3} - 96 \, a^{2} b - 96 \, a b^{2} - 48 \, b^{3} - 6 \,{\left (8 \, a^{2} b + 12 \, a b^{2} + 7 \, b^{3}\right )} c x + 3 \,{\left ({\left (4 \, a b^{2} + 3 \, b^{3}\right )} c^{2} x^{2} - 12 \, a b^{2} - 5 \, b^{3} + 2 \,{\left (4 \, a b^{2} + b^{3}\right )} c x\right )} \log \left (-\frac{c x + 1}{c x - 1}\right )^{2} + 3 \,{\left ({\left (8 \, a^{2} b + 12 \, a b^{2} + 7 \, b^{3}\right )} c^{2} x^{2} - 24 \, a^{2} b - 20 \, a b^{2} - 9 \, b^{3} + 2 \,{\left (8 \, a^{2} b + 4 \, a b^{2} + b^{3}\right )} c x\right )} \log \left (-\frac{c x + 1}{c x - 1}\right )}{128 \,{\left (c^{3} x^{2} + 2 \, c^{2} x + c\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\left (a + b \operatorname{atanh}{\left (c x \right )}\right )^{3}}{\left (c x + 1\right )^{3}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (b \operatorname{artanh}\left (c x\right ) + a\right )}^{3}}{{\left (c x + 1\right )}^{3}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]